package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/aaa")
public class FtlController {
    
    @RequestMapping("hello")
    public String hello(Model model){
        model.addAttribute("hello", "页面静态化");
        return "ftl";
    }
    
    @RequestMapping("a1")
    public ModelAndView a1(Model model){
        model.addAttribute("hello", "页面静态化a1");
        return new ModelAndView("aaa");
    }
}
